package com.acme.bankapp.domain.bank;


public class Client {
	private String name = "";
	private Gender gengerType = Gender.MALE;
	private AbstractAccount account;
	
	public Client(AbstractAccount account) {
		super();
		this.account = account;
	}
	
	public Client(String name, Gender gengerType, AbstractAccount account) {
		this(account);
		this.name = name;
		this.gengerType = gengerType;
	}
	
	public AbstractAccount getAccount() {
		return account;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Gender getGengerType() {
		return gengerType;
	}
	public void setGengerType(Gender gengerType) {
		this.gengerType = gengerType;
	}
	
	public String toString() {
		String s = "";
		s += name + " " + gengerType + " cur balance = " + account.getBalance()  + " maxAToW = " + account.maximumAmountToWithdraw();
		return s;
	}
	

}


